package com.my.yyr.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@RestController
public class TestController {
    @GetMapping("/hi")
    public String hello() {
        return "大叫好";
    }

    @GetMapping("/hi1")
    public Map<String, Object> hello2() {
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("姓名", "二狗");
        map.put("时间",new Date());
        return map;
    }
}
